<?php
$id = @$_GET['id'];
sql_query("DELETE FROM emails WHERE id=\"$id\"");
echo "<script> window.location='index.php?m=emails'; </script>";
?>